using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Runtime.Serialization;

namespace KPIS.GERP.Models.BGM
{
	[Table("bgm_request_manager"), DataContract]
    public class RequestManager
    {

		[Key, DatabaseGenerated(DatabaseGeneratedOption.Identity)]
		[DataMember, Display(Name = "BgmReqMngId", ResourceType = typeof(Resources.RequestManagerResource))]
		[Column("bgm_req_mng_seq", TypeName="int")]
        public int BgmReqMngId { get; set; }

		[ForeignKey("BgmReq")]
		[DataMember, Display(Name = "BgmReqId", ResourceType = typeof(Resources.RequestManagerResource))]
		[Column("bgm_req_seq", TypeName="int")]
        public Nullable<int> BgmReqId { get; set; }

		[ForeignKey("Emp")]
		[DataMember, Display(Name = "EmpId", ResourceType = typeof(Resources.RequestManagerResource))]
		[Column("emp_seq", TypeName="int")]
        public Nullable<int> EmpId { get; set; }

		[DataMember, Display(Name = "Descr", ResourceType = typeof(Resources.RequestManagerResource))]
		[Column("descr", TypeName="ntext")]
        public string Descr { get; set; }

        [DataMember]
        public virtual Request BgmReq { get; set; }

        [DataMember]
		public virtual HRM.Employee Emp { get; set; }

    }
}